package com.aaron.book.thinkinginjava.c21.p655;

import com.aaron.book.thinkinginjava.c21.p654.LiftOff;

/**
 * @author liurong
 * @date 2021/7/9 10:01
 */
public class MoreBasicThreads {
    public static void main(String[] args) {
        for (int i = 0; i < 5; i++) {
            LiftOff liftOff = new LiftOff();
            Thread t = new Thread(liftOff);
            t.setName("id:"+liftOff.getId());
            t.start();
            System.out.println(t.getName()+" Waiting for LiftOff!");
        }
    }
}
